﻿<%@ Page Language="C#" MasterPageFile="~/HotelMain.master" AutoEventWireup="true" CodeFile="HotelInfo.aspx.cs" Inherits="HotelInfo" Title="酒店详情" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<%--    <link rel="stylesheet" href="tipWinodw/tipswindown.css" type="text/css" media="all" />

    <script type="text/javascript" src="tipWinodw/tipswindown.js"></script>--%>
    <script language="javascript">
        $(document).ready(function() {
        
        $("#gotoOrder").click(function() {
                $.ajax({
                    url: 'MyHandder/CheckLogin.ashx',
                    type: 'GET',
                    dataType: 'html',
                    timeout: 10000,
                    error: function(data) {
                        alert('网络超时:' + data);
                    },
                    success: function(xml) {
                        if (xml == 0) {
                        alert("请先登录！");
                        //  tipsWindown(" ","iframe:Login.aspx?myurl=OrderHotel.aspx?Key=<%=modelTemp.id %>","800","400","true","","false","text");
                       } else {
                           window.location = 'OrderHotel.aspx?Key=<%=modelTemp.id %>';
                        }

                    }
                });
            });
        });
    </script>
      <div class="jdb">
            <div style="height: 15px;">当前位置 &minus;&gt; <a href="http://www.innly.com/" >网站首页</a> &minus;&gt; <a href="http://www.innly.com/HotelInfo.aspx">酒店服务</a></div>
                    <div class="jdb2">
                        <div class="pic5">
                            <img src='<%=modelTemp.imagePath %>' width="200" height="142" /></div>
                        <div class="jsb2">
                            <p>
                                <span class="mcb"><%=modelTemp.title %></span></p>
                            <p>
                               酒店地址：<%=modelTemp.address %></p>
                            <p><table><tr><td>星级标准：</td<td><div style="background-repeat: repeat-x; background-image: url(images/xing.jpg);
                                background-position: left; width:<%=GetPicWidth(modelTemp.starNum)%>px; height: 12px;
                                border: 0px;"></div></td></tr></table>
                                </p>
                            <p>
                                <span class="jgb">特 价 房：<span class="smb"> <%=modelTemp.price.Value %></span>&nbsp;元/晚</span></p>
                            <p>
                                <span class="ydb"><a href="#" id="gotoOrder">
                                    <img src="images/4_06.jpg" width="123" height="34" /></a></span></p>
                        </div>
                        <div class="wzb">
                            <p class="xcb">
                                酒店简介：</p>
                                <%=modelTemp.hotelDes %>
                        </div>
                        <div class="yema">
                            <span class="yema2">
                                <img src="images/chujing_65.jpg" width="14" height="13" /><a href="#" onclick="window.scrollTo(0,0);">回到顶部</a></span>
                        </div>
                    </div>
                </div>
</asp:Content>

